/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package be.vdab.util;

import java.util.Calendar;

/**
 *
 * @author thijs.maes
 */
public class Begroeting {
    private final String boodschap;
    
    public Begroeting(){
        Calendar calendar = Calendar.getInstance();
        int uur= calendar.get(Calendar.HOUR_OF_DAY);
        if(uur>=6 && uur<12){
            boodschap = "Goede morgen";
        }
        else if(uur<18){
            boodschap="Goede middag";
                    }
        else {
            boodschap="Goede avond";
        }        
    }
    @Override
        public String toString(){
        return boodschap;
    }
//commentaar
}
